package cn.zhiwen.lambdaDemo;

public class RunableLambdaDemo {
    public static void main(String[] args) {
        //正常获取Runable方式
        Runnable run1 = new Runnable() {
            @Override
            public void run() {
                System.out.println("正常run");
            }
        };

        Runnable run2 = () -> System.out.println("lambda方式run");
        run1.run();
        run2.run();
    }
}
